<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<script type="text/javascript">
	$(function() {
		var defAttrStartTime = "${defAttrStartTime}";
		var defAttrEndTime = "${defAttrEndTime}";
		$('#attrResitForm').click(function() {

			$("#attrutmcsr").val("");
			$("#attrutmcmd").val("");
			$("#attrStartTime").val(defAttrStartTime);
			$("#attrEndTime").val(defAttrEndTime);
		});

	});
</script>
<form id="pagerForm" method="post" action="${ctx}/attribution/page">
</form>

<form rel="pagerForm" onsubmit="return navTabSearch(this);">
        <input type="hidden" name="pageNum" value="${page.current}" />
    <input type="hidden" name="pageSize" value="${page.pageSize}" />
    <input type="hidden" name="numPerPage" value="${page.pageSize}" />
	<input type="hidden" name="tempAttr" value="true"> <input
		type="hidden" name="defAttrStartTime" value="${defAttrStartTime}">
	<input type="hidden" name="defAttrEndTime" value="${defAttrEndTime}">
	<div class="pageHeader">
		<div class="searchBar">
			<table class="searchContent">
				<tbody>
					<tr>
						<td align="right">来源：</td>
						<td align="left"><input type="text" name="utmcsr"
							id="attrutmcsr" class="textInput" value="${utmcsr}">
						<td>
						<td align="right">媒介：</td>
						<td align="left"><input type="text" name=utmcmd
							id="attrutmcmd" class="textInput" value="${utmcmd}">
						<td>
						<td align="center">日期：</td>
						<td align="left"><input type="text"
							class="date textInput readonly" readonly="true"
							dateFmt="yyyy-MM-dd" value="${startTime}" name="startTime"
							id="attrStartTime"> 至 <input type="text"
							class="date textInput readonly" readonly="true"
							dateFmt="yyyy-MM-dd" value="${endTime}" name="endTime"
							id="attrEndTime">
						<td>
					</tr>


				</tbody>

			</table>
			<div class="subBar">
				<ul>
					<li><div class="buttonActive">
							<div class="buttonContent">
								<button id="but_submit" class="sous">查询</button>
							</div>
						</div></li>
					<li><div class="buttonActive">
							<div class="buttonContent">

								<button type="button" id="attrResitForm">重置</button>
							</div>
						</div></li>
				</ul>
			</div>
		</div>
	</div>
</form>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="icon" title="确实要导出这些记录吗?"
				href="${ctx}/attribution/export" target="dwzExport"
				targettype="navTab"><span>导出EXCEL</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="142">
		<thead>
			<tr>
				<th align="center">日期</th>
				<th align="center">来源</th>
				<th align="center">媒介</th>

				<th align="center">模拟开户数</th>
				<th align="center">真实开户数</th>



			</tr>
		</thead>
		<tbody>
			<c:forEach items="${page.data}" var="item">
				<tr target="sid" rel="${item.id}">

					<td><fmt:formatDate value="${item.dataTime}"
							pattern="yyyy-MM-dd" /></td>
					<td>${item.utmcsr}</td>
					<td>${item.utmcmd}</td>
					<td>${item.formatDemoNum}</td>
					<td>${item.formatrealNum}</td>

				</tr>
			</c:forEach>

		</tbody>
	</table>

    <%@include file="/WEB-INF/view/commons/paging.jsp"%>

</div>
